home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
4882
/
4882.xpi
/
chrome
/
tabscope.jar
/
content
/
tabscope
/
overlay.xul
< prev
next >
Wrap
Extensible Markup Language
|
2007-11-28
|
1KB
|
35 lines
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://tabscope/content/overlay.css" type="text/css"?>
<overlay id="tabscopeOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript"><![CDATA[
window.addEventListener("load", function(event) {
// convert legacy preference
var prefBranch = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefBranch)
.getBranch("extensions.tabscope.");
try {
if (prefBranch.getBoolPref("upside_down")) {
prefBranch.setIntPref("popup_alignment", 1);
prefBranch.clearUserPref("upside_down");
}
}
catch (ex) {
}
// attach tabscope popup
var fx3 = "PlacesUtils" in window;
var popup = document.createElement(fx3 ? "panel" : "popup");
popup.id = "tabscopePopup";
popup.setAttribute("class", "tabscope");
popup.setAttribute("browserid", "content");
if (navigator.platform.indexOf("Win") != 0)
popup.setAttribute("noautohide", "true");
document.getElementById("mainPopupSet").appendChild(popup);
}, false);
]]></script>
</overlay>